﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

#endregion


namespace ESF.SSO.Core.Entities.Statistics
{
	[Serializable]
	public class OperationExecution
	{
		#region Fields
		
		public string CustomOperationName { set; get; }

		public string XMLParams { set; get; }

		public User User { set; get; }

		public DateTime? ExecutionDateTime { set; get; }

		public string UserHostAddress { set; get; } 

		#endregion


		#region Filters

		public DateTime? filExecutionDateTimeStart;
		public DateTime? filExecutionDateTimeEnd;

		#endregion


		#region Calculated

		public int? calYear { set; get; }

		public int? calMonth { set; get; }

		public int? calOperationCount { set; get; }

		public string prpUserEnterpriseName { get { if (User != null && User.Enterprise != null) { return User.Enterprise.Name; } return string.Empty; } }

		#endregion
	}
}
